package com.ruoyi.mobile.api;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResults;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.service.ISysDictDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 小程序调用公共接口
 *
 * @author gk
 * @date 2023-06-14
 */
@Api(tags = "小程序调用公共接口")
@RestController
@RequestMapping
public class BeCurrentController extends BaseController {

    @Autowired
    private ISysDictDataService dictDataService;

    @ApiOperation(value = "公用--查询字典数据  根据dictType 查询")
    @GetMapping("/weixin/dictData/list")
    public AjaxResults list(SysDictData dictData)
    {
        List<SysDictData> list = dictDataService.selectDictDataList(dictData);
        return AjaxResults.success(list);
    }

}
